<?php
namespace app\admin\model;

use think\Model;
use think\Db;

class Rule extends Model
{
	protected $name = 'auth_group_access';

	public function role()
	{
		return $this->belongsTo('Role');
	}

	public function parent()
	{
		return $this->hasMany('Rule','parent_id','id');
	}
}